// 公共样式文件

// 缩进样式
.indent-0 {
  margin-left: 0;
}

.indent-1 {
  margin-left: 20px;
}

.indent-2 {
  margin-left: 40px;
}

.indent-3 {
  margin-left: 60px;
}

.indent-4 {
  margin-left: 80px;
}

.indent-5 {
  margin-left: 100px;
}

// 前缀符号样式
.prefix-symbol {
  font-size: 16px;
  color: #000;
  margin-right: 6px;
  font-weight: normal;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

// 字段名称输入框样式
.field-name-input {
  flex-shrink: 0;
  
  :deep(.el-input__wrapper) {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    
    &:hover {
      background: rgba(64, 158, 255, 0.1);
      border-radius: 4px;
    }
    
    &.is-focus {
      background: rgba(64, 158, 255, 0.1);
      border-radius: 4px;
    }
  }
  
  :deep(.el-input__inner) {
    padding: 2px 4px;
    font-size: 14px;
    color: #303133;
    background: transparent;
    border: none;
    
    &::placeholder {
      color: #c0c4cc;
    }
  }
  
  &.bold-text {
    :deep(.el-input__inner) {
      font-weight: bold;
    }
  }
}

// 字段名称容器样式
.field-name-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

// 选项输入框样式
.option-input {
  :deep(.el-input__wrapper) {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }
  
  :deep(.el-input__inner) {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
}

// 选项行样式
.option-line {
  margin-left: 0px;
  display: inline-block;
  min-width: 40px;
  padding: 2px 4px;
  border-bottom: 1px solid #000;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  vertical-align: bottom;
  position: relative;
  top: 12px;
}

// 复选框包装器样式
.checkbox-wrapper {
  .checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid #dcdfe6;
    border-radius: 2px;
    background: #f5f7fa;
    position: relative;
  }
}

// 按钮样式
.delete-btn {
  width: 24px;
  height: 24px;
  margin-left: 4px;
}

.add-btn {
  width: 24px;
  height: 24px;
  margin-left: 8px;
}

// 选项项样式
.option-item {
  display: flex;
  align-items: center;
  gap: 2px;
}

// 选项容器样式
.options-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

// 时间显示容器样式
.time-display-container {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

// 文本段落样式
.text-segment {
  white-space: nowrap;
  font-size: 14px;
}

// 字段名称文本样式
.field-name-text {
  // white-space: nowrap;
  
  &.bold-text {
    font-weight: bold;
  }
}

// 字段名称样式
.field-name {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

// 时间显示样式
.time-display {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

// 输入占位符样式
.input-placeholder {
  display: inline-block;
  min-width: 40px;
  padding: 2px 4px;
  border-bottom: 1px solid #000;
  text-align: center;
  white-space: nowrap;
} 